package org.sample.ams.apis.controller;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.wisdom.vo.ResponseResult;

/**
 * 工单API
 *
 * @author 张智研
 * @date 2022/05/29 22:32
 **/
@FeignClient(name = "${wisdom.ams.name:wisdom-ams}", path = "/work_order", primary = false)
public interface WorkOrderController {

    /**
     * 测试方法
     * @author 张智研
     * @date 2022/05/30 09:40
     * @param name name
     * @return org.wisdom.vo.ResponseResult<java.lang.String>
     */
    @PostMapping(value = "/login/{name}")
    ResponseResult<String> test(@PathVariable("name") String name);
}
